import pytest
from baseAPI.baseAPI import MyRequests
from baseTools.myLogger import logger

@pytest.fixture(scope='session', autouse=True)
def login():
    logger.info("前置步骤，获取token")
    req = MyRequests()
    req.getToken(method='get', url='https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=ww32f5df9a2517b554&corpsecret=nuNw29ZfaeuyYVhV1qrckKSn12Z7Lmntp3whCMbJF1w')
    return req